using UnityEngine;

public class PvpMapButton : MonoBehaviour
{
	public string nameScene;

	public PvpWindowPosition position;

	[SerializeField]
	private Transform center;

	public void OnClick()
	{
		LevelsInfo levelInfo = ManagerPVPLevels.instance.GetLevelInfo(nameScene);
		if (levelInfo.nameScene == "Level1")
		{
			controllerConnectPhoton.thisScript.connectRandomRoom(levelInfo.nameScene, levelInfo.modeGame);
			return;
		}
		center.localScale = Vector3.one;
		StartLoadLevelWindow.instance.ShowWindow(levelInfo, 0f, string.Empty);
	}
}
